package com.dailyblue.java.spring.ioc.work.work3;

import lombok.Data;

@Data
public class School implements Introduction{

    private Printer printer;

    private String name;

    public String detail(){
        return name;
    }

/*    public void print(School school){
        printer.print(school.detail());
    }
    public void print(Teacher teacher){
        printer.print(teacher.detail());
    }*/
    public void print(Introduction introduction){
        printer.print(introduction.detail());
    }
}
